const app = getApp()
Page({
    data: {
        navTitle: "生活频道",
        icon_next_page: "https://ai-cdn.joyoung.com/ia/images/dietary/icon_next_page.png",
        // screenHeight: app.globalData.systemInfo.screenHeight,
        // windowHeight: app.globalData.systemInfo.windowHeight,
        // kMarginTop: app.globalData.navigationBarHeight,
        // navBarHeight: app.globalData.navigationBarHeight,
    },
    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function(options) {

        var that = this;
        var lifeList = [
            {
                life_image: "https://ai-cdn.joyoung.com/ia/images/dietary/icon_Workaholic.jpg",
                life_name: "工作狂"
            },
            {
                life_image: "https://ai-cdn.joyoung.com/ia/images/dietary/icon_beauty.jpg",
                life_name: "美容养颜"
            },
            {
                life_image: "https://ai-cdn.joyoung.com/ia/images/dietary/icon_lose_weight.jpg",
                life_name: "护发"
            },
            {
                life_image: "https://ai-cdn.joyoung.com/ia/images/dietary/icon_pregnancy.jpg",
                life_name: "孕期备孕"
            },
            {
                life_image: "https://ai-cdn.joyoung.com/ia/images/dietary/icon_fitness.jpg",
                life_name: "健身达人"
            },
            {
                life_image: "https://ai-cdn.joyoung.com/ia/images/dietary/icon_slimming.jpg",
                life_name: "减肥纤体"
            }
        ]

        that.setData({
            lifeList: lifeList
        });

    },

    onShow: function() {

    },


})
